FROM alpine

# ENV GOPROXY https://goproxy.cn/

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

RUN apk update --no-cache
RUN apk add --update gcc g++ libc6-compat
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache tzdata
ENV TZ Asia/Shanghai

WORKDIR /app
COPY ./go-malphite /app/go-malphite
COPY ./config/application-prod.yml /app/config/application-prod.yml
EXPOSE 8080
RUN  chmod +x /app/go-malphite
CMD ["/app/go-malphite","-c", "/app/config/application-prod.yml"]